//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

import com.zaxxer.hikari.HikariDataSource;
import java.sql.SQLException;

public class Hello {
    public Hello() {
    }


    public static void main(String[] args) {
        HikariDataSource dataSource = new HikariDataSource();
        dataSource.setJdbcUrl("jdbc:mysql://localhost:3306/jdbc");
        dataSource.setUsername("root");
        dataSource.setPassword("6666");
        dataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        dataSource.setMaximumPoolSize(10);
        dataSource.setMinimumIdle(5);
        dataSource.setIdleTimeout(60000L);
        dataSource.setConnectionTimeout(30000L);
        dataSource.setMaxLifetime(1800000L);

        try {
            if (dataSource.getConnection() != null) {
                System.out.println("连接成功！");
            } else {
                System.out.println("连接失败！");
            }

        } catch (SQLException var3) {
            throw new RuntimeException(var3);
        }
    }
}
